package com.shambles.manage2.controller;

/**
 * 预约操作
 */

import com.shambles.manage2.service.StaffService;
import com.shambles.manage2.tkmapper.entity.SubscribeInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("staff")
public class StaffController {
    @Autowired
    private StaffService staffService;
    /**
     * 操作人id，傳入預約人id，预约信息
     * 新建預約
     */
    @PostMapping("newStaff")
    public void newStaff(String empId, String userId){

    }

    /**
     * 查詢預約列表
     */
    @PostMapping("staffList")
    public List<SubscribeInformation> staffList(SubscribeInformation subscribeInformation){
        return staffService.staffList(subscribeInformation);
    }
}
